package me.zhengjie.poemmanager.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class Query {
    @ApiModelProperty(value = "主键")
    private Integer poemId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "副标题")
    private String subTitle;

    @ApiModelProperty(value = "用户名")
    private String authorName;

    @ApiModelProperty(value = "朝代")
    private String dynasty;


    @ApiModelProperty(value = "主体内容")
    private String content;

    @ApiModelProperty(value = "创造时间")
    private Timestamp createdAt;

    @ApiModelProperty(value = "更新时间")
    private Timestamp updatedAt;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "评论数")
    private List<Comment> comments;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "作者id（用户的id或者作者的id）")
    private Integer authorId;

//    @NotBlank
//    @ApiModelProperty(value = "推荐时间")
//    private Timestamp recommendDate;

    @ApiModelProperty(value = "内容摘要")
    private String excerpt;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "主键")
    private Integer postId;

    @ApiModelProperty(value = "诗歌作者")
    private String poemAuthor;


    @ApiModelProperty(value = "状态（0正常，1删除）")
    private Integer status;

    @TableField(exist = false)
    @ApiModelProperty(value = "标签")
    private List<String> tag;

    @TableField(exist = false)
    @ApiModelProperty(value = "类型（0:post,1:poemUser,2:poemPoet,3:recitation）")
    private Integer type;
}
